package swapna.test.main;

public class FirstSample {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Hello World");
		Person person = new Person();
		person.setName("Laxmi");
		person.setAge(25);
		person.setAddress("address 1");
		person.setAmount(100);
		Person person1 = new Person();
		person1.setAmount(200);
		person1.address = "jjj";

		System.out.println("Name : "+person.getName());
		System.out.println("Age : "+person.getAge());
		System.out.println("Address : "+person.getAddress());
		System.out.println("Amount:"+person1.getAmount());
		System.out.println("Amount:"+(person.getAmount()-person1.getAmount()));

		MathOperations oper= new MathOperations();
		try{
			int y =10/0;
		}catch(Exception e){
			System.out.println("Exception");
		}finally{

		}
		int s = oper.sum(200, 770);
		System.out.println("Amount sum:"+s);
		int m=oper.sub(970, 250);
		System.out.println("Subtration:"+m);
		int a=oper.alg(2, 5);
		System.out.println("Alg:"+a);
		oper.num(25);
		oper.testFor(13);
		}
	}
